<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Event flags</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.examples.html">范例</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.persistence.html">About event persistence</a></div>
 <div class="up"><a href="book.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="event.flags" class="chapter">
 <h1>Event flags</h1>

 <p class="para">
  <strong><code>Event::READ</code></strong>
  This flag indicates an event that becomes active when the provided file
  descriptor(usually a stream resource, or socket) is ready for reading.
 </p>
 <p class="para">
  <strong><code>Event::WRITE</code></strong>
  flag indicates an event that becomes active when the provided file
  descriptor(usually a stream resource, or socket) is ready for reading.
 </p>
 <p class="para">
  <strong><code>Event::SIGNAL</code></strong>
  used to implement signal detection. See &quot;Constructing signal events&quot; below.
 </p>
 <p class="para">
  <strong><code>Event::TIMEOUT</code></strong>
  indicates an event that becomes active after a timeout elapses. The
  <strong><code>Event::TIMEOUT</code></strong>
  flag is ignored when constructing an event: one can either set a timeout
  when event is
  <em class="emphasis">added</em>
  , or not. It is set in the
  <em>$what</em>
  argument to the callback function when a timeout has occurred.
 </p>
 <p class="para">
  See also
  <a href="http://www.wangafu.net/~nickm/libevent-book/Ref4_event.html#_the_event_flags" class="link external">&raquo;&nbsp;Fast
 portable non-blocking network programming with Libevent, Working with events,
 Event flags</a>
 </p>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.examples.html">范例</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.persistence.html">About event persistence</a></div>
 <div class="up"><a href="book.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
